package com.gs.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 高尚
 * @Date: 2021/1/16 11:55
 * @Email: gs_0723@163.com
 * @Desc:
 */
@RestController
@RequestMapping(value = "/test")
public class TestCotroller extends BaseController {
    @RequestMapping(value = "/hello")
    public String hello() {
        try {
            return getSuccessResult("操作成功222222");
        } catch (Exception e) {
            e.printStackTrace();
            return getErrorResult(1001, "系统异常");
        }
    }
}
